package com.samoiloff.ui.list.smart.controller {
	import com.samoiloff.ui.list.smart.model.SmartListModel;

	/**
	 * @author Samoiloff
	 */
	public class SmartListController {
		
		private var _scroll		: SmartListScrollController;
		private var _viewport	: SmartListViewportController;
		private var _renderers	: SmartListRenderersController;
		private var _selected	: SmartListSelectedController;
		private var _bg			: SmartListBgController;
		
		public function SmartListController(model:SmartListModel) {
			_renderers	= new SmartListRenderersController(model);
			_scroll		= new SmartListScrollController(model);
			_viewport	= new SmartListViewportController(model);
			_selected	= new SmartListSelectedController(model);
			_bg			= new SmartListBgController(model);	
		}
		
		public function destroy():void {
			_scroll.destroy();
			_viewport.destroy();
			_renderers.destroy();
			_selected.destroy();
			_bg.destroy();
		}
	}
}
